﻿<?php
require_once( dirname(__FILE__).'/../libs/bedmintonlib.php' );

function homeString()
{
    $findUsTitle = "Nájdete nás";
    $findUsDescription = "Hala sa nachádza vo <b>Vlčom Hrdle.</b> Hotline rezervácie na tel. čísle <b>0918 999 888.</b>";
    $yonexTitle = "Špecializovaný obchod";
    $yonexDescription = "Rakety, košíky a vybavenie, ktoré spĺňa požiadavky širokého spektra hráčov. Pomôžeme Vám s výberom, možnosť testovania vybraných modelov rakiet <b>YONEX, VICTOR a ADIBO.</b>";
    $trainerTitle = "Osobný tréner";
    $trainerDescription = "Máš záujem zdokonaliť sa v bedmintone? To sa dá vyriešiť veľmi jednoducho. <b>Objednaj si osobného trénera</b> u nás na recepcii alebo na telefónnom čísle <b>0918 999 888</b> alebo <b>0918 999 806</b>";
    $rocketTitle = "Vypletanie rakiet";
    $rocketDescription = "<b>Rakety vypletáme</b> priamo v centre, <b>s možnosťou do 24 hod.</b> V základnej ponuke výpletov je <b>Yonex a Ashaway</b>. Rakety vypletáme na profesionálnom elektrickom vypletacom stroji.";
    $trainings = "Špeciálna ponuka tréningov!";
    if (isEnglish())
    {
        $findUsTitle = "Find Us";
        $findUsDescription = "The hall is located in Bratislava, <b>Vlčie Hrdlo.</b> Hotline reservations on tel. number <b>0918 999 888.</b>";
        $yonexTitle = "Specialized Store";
        $yonexDescription = "Racquets, shuttlecocks and equipement, which fulfills the requirements of a wide range of players. We can help you with selection, the possibility of testing selected models of racquets <b>Yonex, Victor and Adibo.</b> ";
        $trainerTitle = "Personal Trainer";
        $trainerDescription = "Would you like to improve your bedminton skills? This can be solved very easily. <b>Order a personal trainer</b> at our reception or on tel. number<b> 0918 999 888</b> or <b>0918 999 806</b>";
        $rocketTitle = "Racquet Stringing";
        $rocketDescription = "<b>We string racquets</b> directly in center, <b>with the possibility until 24 hrs.</b> In the basic offer of strings is <b>Yonex and Ashaway</b>. We string racquet on a professional electric stringing machine.";
    }
    
    $retVal = "<table class = \"homeTable\"><tr>
        <td >
          <div class = \"descriptionTitle\">$findUsTitle</div>
          <div class = \"descriptionContent\">$findUsDescription</div>
          <div class = \"descriptionTitle\">$yonexTitle</div>
          <div class = \"descriptionContent\">$yonexDescription</div>
          <div class = \"descriptionTitle\">$trainerTitle</div>
          <div class = \"descriptionContent\">$trainerDescription</div>
          <div class = \"descriptionTitle\">$rocketTitle</div>
          <div class = \"descriptionContent\">$rocketDescription</div>
        </td>
        <td style = \"vertical-align:top;\">
          <div id=\"slideshowHolder\">
          
    <img src=\"../images/zlavy02.jpg\" />
          <img src=\"../images/home_1.jpg\" />
    <img src=\"../images/otvaracie_hodiny.jpg\" />     
    <img src=\"../images/home_4.jpg\" /> 
          <img src=\"../images/home_2.jpg\" />
          <img src=\"../images/home_3.jpg\" />
        </div> 
        </td>
        </tr></table>
  
    <script>
        var indexDescription = 1;
        var textTitle = new Array();
        var textContent = new Array();
        textTitle[0] = '$findUsTitle';
        textContent[0] = '$findUsDescription';
        textTitle[1] = '$yonexTitle';
        textContent[1] = '$yonexDescription';
        textTitle[2] = '$trainerTitle';
        textContent[2] = '$trainerDescription';
        textTitle[3] = '$rocketTitle';
        textContent[3] = '$rocketDescription';
        
        $('#slideshowHolder').jqFancyTransitions({ width: 620, height: 400 });
        timedCount();
        var idTimer = -1;
        function timedCount()
        {
            if (idTimer != -1)
              clearTimeout( idTimer );           
            
            $('#slideshowHolder').doTransition();
            idTimer = setTimeout(\"timedCount()\", 7000 );
        }
    </script>

    ";

    return $retVal;
};

echo( homeString() );
?>
